package cn.tedu.controller;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("school")
public class SchoolController {
    @RequestMapping("get")
    public Object get(){
        ClassPathXmlApplicationContext cpxac = new ClassPathXmlApplicationContext("spring-config.xml");
        Object school = cpxac.getBean("school");
        return school;
    }
}
